<?php
/**
 * Created by PhpStorm.
 * User: nathan
 * Date: 2019/2/13
 * Time: 14:37
 */

namespace Refine\Iplookup;

use Curl\Curl;

/**
 * Class AbstractIplookup
 * @package Refine\Iplookup
 */
abstract class AbstractIplookup implements IplookupInterface
{
    /**
     * @var Curl
     */
    protected $curl;

    /**
     * AbstractIplookup constructor.
     * @param Curl $curl
     */
    public function __construct(Curl $curl)
    {
        $this->curl = $curl;
    }

    /**
     * @param string $ip
     * @return string
     */
    abstract function lookup($ip);

}